<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<body>
<div id="header" class="wrap">
    <div id="logo"><img src="/images/logo.gif"/></div>
    <div class="help"><a href="/product/shopping_cart" class="shopping">购物车</a><a
        <c:if test="${sessionScope.USER_IN_SESSION == null}">
            <a href="/login.jsp">登录</a></c:if>
        <c:if test="${sessionScope.USER_IN_SESSION != null}">
            <c:if test="${sessionScope.USER_IN_SESSION.status == 1}">
                <h3><a href="/index">${sessionScope.USER_IN_SESSION.userId}</a></h3>
            </c:if>
            <c:if test="${sessionScope.USER_IN_SESSION.status == 2}">
                <h3><a href="/manage/index">${sessionScope.USER_IN_SESSION.userId}</a></h3>

            </c:if>
            <a href="/login.jsp">注销</a>
        </c:if>
        <a href="/register.jsp">注册</a><a href="/comment/info">留言</a></div>
    <div class="navbar">
        <ul class="clearfix">
            <li class="current"><a href="#">首页</a></li>
            <li><a href="#">图书</a></li>
            <li><a href="#">百货</a></li>
            <li><a href="#">品牌</a></li>
            <li><a href="#">促销</a></li>
        </ul>
    </div>
</div>
<div id="childNav">
    <div class="wrap">
        <ul class="clearfix">
            <c:forEach items="${sessionScope.PRODUCT_CATEGORY_IN_SESSION}" var="productCategorParent">
                <c:forEach items="${productCategorParent.productCategoryChildren}" var="productCategoryChildren">
                    <li>
                        <a href="/product/category?pcChildId=${productCategoryChildren.id}">${productCategoryChildren.name}</a>
                    </li>
                </c:forEach>
            </c:forEach>
        </ul>
    </div>
</div>
